package com.nohgun.bike;


import java.util.HashMap;

import com.nohgun.bike.database.DBHelper;
import com.nohgun.bike.pass.PassMainActivity;
import com.nohgun.bike.test.CameraTest;


import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
	
	protected DBHelper dbhelper;
	private SQLiteDatabase db;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        this.dbhelper = new DBHelper(getApplicationContext());
        if (this.db == null) {
            this.db = this.dbhelper.getWritableDatabase();
        }
        
        final Button main_btn_pass =  (Button)findViewById(R.id.main_btn_pass);
        main_btn_pass.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				
				Intent in = new Intent(MainActivity.this,CameraTest.class);
				startActivity(in);
				
			}
		});
    }
    
    
}